Skip to content

gh-127388: Restore WeakValueDictionary.itervaluerefs documentation - #159850

Merged
kumaraditya303 merged 1 commit into
python:mainfrom
limadog9:gh-127388-itervaluerefs-docs
Oct 20, 2026
Merged

kumaraditya303 merged 1 commit into
python:mainfrom
limadog9:gh-127388-itervaluerefs-docs

Conversation

@limadog9

@limadog9 limadog9 commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Restore the documentation for the public WeakValueDictionary.itervaluerefs() method and apply the existing weak-reference lifetime warning to both reference methods.

The Python 3 mapping-interface change in ecaab83 removed this documentation while retaining the method. It remains a generator in the current implementation and is covered by the existing weakref tests.

Fixes #127388.

Validation:

  • Confirmed the iterator protocol, weak-reference results, and collection of referents on the current CPython debug build.
  • All weakref tests: 140 tests, 4 skipped.
  • Full HTML documentation build with warnings treated as errors.
  • Sphinx lint and patchcheck.

@read-the-docs-community

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #35258725 | 📁 Comparing af03b69 against main (6044c62)

  🔍 Preview build  

1 file changed
± library/weakref.html

@kumaraditya303
kumaraditya303 merged commit 59942e2 into python:main Oct 20, 2026
36 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in Docs PRs Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Documentation in the Doc dir skip news

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Missing document of WeakValueDictionary.itervaluerefs

2 participants